/*
 * main.c
 *
 *  Created on: 25.12.2012
 *      Author: Michael
 */
#include "stack.h"

int main(int argc, char** argv) {
	Stack_t* pStack = createStack();
	pStack->push(pStack, 5);
	pStack->push(pStack, 8);
	pStack->push(pStack, 3);

	/*
	 * Estimated result:
	 * 5
	 * 8
	 * 3
	 */
	pStack->print(pStack);

	pStack->pop(pStack);

	/*
	 * Estimated result:
	 * 5
	 * 8
	 */
	pStack->print(pStack);

	pStack->peak(pStack);

	/*
	 * Estimated result:
	 * 5
	 * 8
	 */
	pStack->print(pStack);

	pStack->pop(pStack);
	pStack->pop(pStack);

	/*
	 * Estimated result:
	 * Should be empty
	 */
	pStack->print(pStack);

	return 0;
}
